#原始列表
lst = [1,"hello",3,"world"]
#初始化新列表
even_nums = []
odd_nums = []
str_lengths = []
#遍历原始列表
for element in lst:
    if isinstance(element,int):
        if element % 2 == 0:
            even_nums.append(element)
        else:
            odd_nums.append(element)
    elif isinstance(element,str):
        str_lengths.append(len(element))
#打印结果
print("偶数列表：",even_nums)
print("奇数列表：",odd_nums)
print("字符串长度列表：",str_lengths)